<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular-1.3.0.js"></script>
    <title></title>
</head>
<body ng-app>
<div ng-controller="control">
    <button ng-click="bb()">{{aa}}</button>
    <div ng-controller="childControl">
        <h3>{{aa}}</h3>
        <button ng-click="cc()">孩子</button>
    </div>
</div>
<script>
    function control ($scope){
        $scope.aa="hello world";
        $scope.bb=function(){

            $scope.aa='我变了'
            console.log( $scope.aa)
        };

    };
    function childControl($scope){

        $scope.cc=function(){
            $scope.aa="我是孩子"
        }
    }
</script>
</body>
</html>